package com.system.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.system.user.entity.UsageEntity;
import com.system.user.entityVO.UsageParamVO;
import com.system.user.entityVO.UsageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface UsageDao {

    int insertUsage(@Param("bNumber") String bNumber, @Param("use") double use);

    List<UsageVO> selectWaterByMonth();

    List<UsageVO> selectLightingByMonth();

    List<UsageEntity> selectByDate(UsageParamVO usageParamVO);

}
